Dynomotion

Group: DynoMotion Message: 6321 From: s.astrom Date: 12/27/2012
Subject: Button jog
Hi,
I'm using kanalog and kflop with mach3 to run my mill.
I want to mount buttons on the control panel to use for jog.
Is that possible and how would i do that.
3 buttons with jog+ and jog-.
I dont know what pin to connect to and how the c program
should look like.
Group: DynoMotion Message: 6324 From: Tom Kerekes Date: 12/27/2012
Subject: Re: Button jog
Hi Stefan,

You can basically wire switches to any available inputs as a software program will be used to read them and command motion.  The software program can be written to monitor any inputs.

The simplest would be to use the Kanalog Opto Inputs if they are available and run 12V through the switches.

Another option would be to switch 3.3V to KFLOP's inputs on JP4 or JP5 where each connector has 8 built in 150 ohm pull down resistors.

Could you explain the "3 buttons" more clearly.  I'm thinking you mean (3) 3 way momentary toggle switches?  That would actually require 6 inputs.

The program would basically be to monitor the switches and command Jogs of some speed or stop (Jog at zero speed).

You would only need one speed?  Or would you want variable or various speeds?

Regards
TK

Group: DynoMotion Message: 6325 From: s.astrom Date: 12/27/2012
Subject: Re: Button jog
Hi Tom

Each button is 3 way momentary toggled switches.
So yes it would take 6 inputs.
And i would want variable speed if possible. With a potentiometer or something.
I have a 12 way switch 0 - 120%, 10% steps i could use.
Sorry for any miss spellings.

Stefan


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Stefan,
>
> You can basically wire switches to any available inputs as a software program will be used to read them and command motion.  The software program can be written to monitor any inputs.
>
>
> The simplest would be to use the Kanalog Opto Inputs if they are available and run 12V through the switches.
>
> Another option would be to switch 3.3V to KFLOP's inputs on JP4 or JP5 where each connector has 8 built in 150 ohm pull down resistors.
>
> Could you explain the "3 buttons" more clearly.  I'm thinking you mean (3) 3 way momentary toggle switches?  That would actually require 6 inputs.
>
> The program would basically be to monitor the switches and command Jogs of some speed or stop (Jog at zero speed).
>
> You would only need one speed?  Or would you want variable or various speeds?
>
> Regards
> TK
>
>
>
> ________________________________
> From: s.astrom <stefan.astrom@...>
> To: DynoMotion@yahoogroups.com
> Sent: Thursday, December 27, 2012 1:48 AM
> Subject: [DynoMotion] Button jog
>
>
>  
> Hi,
> I'm using kanalog and kflop with mach3 to run my mill.
> I want to mount buttons on the control panel to use for jog.
> Is that possible and how would i do that.
> 3 buttons with jog+ and jog-.
> I dont know what pin to connect to and how the c program
> should look like.
>
Group: DynoMotion Message: 6328 From: Tom Kerekes Date: 12/27/2012
Subject: Re: Button jog
Hi Stephan,

A 12 way switch would use 11 inputs.  You could use 11 resistors and make it work like a 12 position potentiometer.  Either this or a real potentiometer could be connected to a Kanalog ADC input.  Connect one end of the "pot" to GND, one end to +5V and the wiper to the ADC input.  Observe the KMotion Analog Screen to verify it is working.

We don't know the specifics of your system.  Propose a wiring configuration and we can check it for you.

Once you get all the signals into KFLOP we can work on the C program.

Regards
TK


Group: DynoMotion Message: 6331 From: s.astrom Date: 12/28/2012
Subject: Re: Button jog
Thanx Tom.
I will fix the wiring and get back to you.

Stefan

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Stephan,
>
> A 12 way switch would use 11 inputs.  You could use 11 resistors and make it work like a 12 position potentiometer.  Either this or a real potentiometer could be connected to a Kanalog ADC input.  Connect one end of the "pot" to GND, one end to +5V and the wiper to the ADC input.  Observe the KMotion Analog Screen to verify it is working.
>
> We don't know the specifics of your system.  Propose a wiring configuration and we can check it for you.
>
> Once you get all the signals into KFLOP we can work on the C program.
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: s.astrom <stefan.astrom@...>
> To: DynoMotion@yahoogroups.com
> Sent: Thursday, December 27, 2012 1:29 PM
> Subject: [DynoMotion] Re: Button jog
>
>
>  
>
> Hi Tom
>
> Each button is 3 way momentary toggled switches.
> So yes it would take 6 inputs.
> And i would want variable speed if possible. With a potentiometer or something.
> I have a 12 way switch 0 - 120%, 10% steps i could use.
> Sorry for any miss spellings.
>
> Stefan
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Stefan,
> >
> > You can basically wire switches to any available inputs as a software program will be used to read them and command motion.  The software program can be written to monitor any inputs.
> >
> >
> > The simplest would be to use the Kanalog Opto Inputs if they are available and run 12V through the switches.
> >
> > Another option would be to switch 3.3V to KFLOP's inputs on JP4 or JP5 where each connector has 8 built in 150 ohm pull down resistors.
> >
> > Could you explain the "3 buttons" more clearly.  I'm thinking you mean (3) 3 way momentary toggle switches?  That would actually require 6 inputs.
> >
> > The program would basically be to monitor the switches and command Jogs of some speed or stop (Jog at zero speed).
> >
> > You would only need one speed?  Or would you want variable or various speeds?
> >
> > Regards
> > TK
> >
> >
> >
> > ________________________________
> > From: s.astrom <stefan.astrom@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Thursday, December 27, 2012 1:48 AM
> > Subject: [DynoMotion] Button jog
> >
> >
> >  
> > Hi,
> > I'm using kanalog and kflop with mach3 to run my mill.
> > I want to mount buttons on the control panel to use for jog.
> > Is that possible and how would i do that.
> > 3 buttons with jog+ and jog-.
> > I dont know what pin to connect to and how the c program
> > should look like.
> >
>
Group: DynoMotion Message: 6386 From: s.astrom Date: 1/5/2013
Subject: Re: Button jog
Hi Tom

Ok so i have connected the pot to adc input 0. And it shows 0.1 - 4.9 volts in the analog screen.
The jog switches are connected to JP4 like X+ IO16, X- IO17, Y+ IO18, Y- IO19, Z+ IO20 AND Z- IO21 all with 3.3 volts and i can see in the io sreen that ist working.

Stefan

--- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
>
> Hi Stephan,
>
> A 12 way switch would use 11 inputs.  You could use 11 resistors and make it work like a 12 position potentiometer.  Either this or a real potentiometer could be connected to a Kanalog ADC input.  Connect one end of the "pot" to GND, one end to +5V and the wiper to the ADC input.  Observe the KMotion Analog Screen to verify it is working.
>
> We don't know the specifics of your system.  Propose a wiring configuration and we can check it for you.
>
> Once you get all the signals into KFLOP we can work on the C program.
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: s.astrom
> To: DynoMotion@yahoogroups.com
> Sent: Thursday, December 27, 2012 1:29 PM
> Subject: [DynoMotion] Re: Button jog
>
>
>  
>
> Hi Tom
>
> Each button is 3 way momentary toggled switches.
> So yes it would take 6 inputs.
> And i would want variable speed if possible. With a potentiometer or something.
> I have a 12 way switch 0 - 120%, 10% steps i could use.
> Sorry for any miss spellings.
>
> Stefan
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> >
> > Hi Stefan,
> >
> > You can basically wire switches to any available inputs as a software program will be used to read them and command motion.  The software program can be written to monitor any inputs.
> >
> >
> > The simplest would be to use the Kanalog Opto Inputs if they are available and run 12V through the switches.
> >
> > Another option would be to switch 3.3V to KFLOP's inputs on JP4 or JP5 where each connector has 8 built in 150 ohm pull down resistors.
> >
> > Could you explain the "3 buttons" more clearly.  I'm thinking you mean (3) 3 way momentary toggle switches?  That would actually require 6 inputs.
> >
> > The program would basically be to monitor the switches and command Jogs of some speed or stop (Jog at zero speed).
> >
> > You would only need one speed?  Or would you want variable or various speeds?
> >
> > Regards
> > TK
> >
> >
> >
> > ________________________________
> > From: s.astrom
> > To: DynoMotion@yahoogroups.com
> > Sent: Thursday, December 27, 2012 1:48 AM
> > Subject: [DynoMotion] Button jog
> >
> >
> >  
> > Hi,
> > I'm using kanalog and kflop with mach3 to run my mill.
> > I want to mount buttons on the control panel to use for jog.
> > Is that possible and how would i do that.
> > 3 buttons with jog+ and jog-.
> > I dont know what pin to connect to and how the c program
> > should look like.
> >
>
Group: DynoMotion Message: 6389 From: Tom Kerekes Date: 1/5/2013
Subject: Re: Button jog
Hi Stefan,

Please try the attached program.

You will need to change these for your desired max speeds (pot at 5V) in counts/sec for your system

#define MAX_SPEED_X 500.0
#define MAX_SPEED_Y 500.0
#define MAX_SPEED_Z 500.0

Regards
TK

Group: DynoMotion Message: 6394 From: s.astrom Date: 1/6/2013
Subject: Re: Button jog
That worked fine. Big thanx Tom

Stefan

--- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
>
> Hi Stefan,
>
> Please try the attached program.
>
> You will need to change these for your desired max speeds (pot at 5V) in counts/sec for your system
>
> #define MAX_SPEED_X 500.0
> #define MAX_SPEED_Y 500.0
> #define MAX_SPEED_Z 500.0
>
>
> Regards
> TK
>
>
>
> ________________________________
> From: s.astrom
> To: DynoMotion@yahoogroups.com
> Sent: Saturday, January 5, 2013 10:16 AM
> Subject: [DynoMotion] Re: Button jog
>
>
>  
> Hi Tom
>
> Ok so i have connected the pot to adc input 0. And it shows 0.1 - 4.9 volts in the analog screen.
> The jog switches are connected to JP4 like X+ IO16, X- IO17, Y+ IO18, Y- IO19, Z+ IO20 AND Z- IO21 all with 3.3 volts and i can see in the io sreen that ist working.
>
> Stefan
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> >
> > Hi Stephan,
> >
> > A 12 way switch would use 11 inputs.  You could use 11 resistors and make it work like a 12 position potentiometer.  Either this or a real potentiometer could be connected to a Kanalog ADC input.  Connect one end of the "pot" to GND, one end to +5V and the wiper to the ADC input.  Observe the KMotion Analog Screen to verify it is working.
> >
> > We don't know the specifics of your system.  Propose a wiring configuration and we can check it for you.
> >
> > Once you get all the signals into KFLOP we can work on the C program.
> >
> > Regards
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: s.astrom
> > To: DynoMotion@yahoogroups.com
> > Sent: Thursday, December 27, 2012 1:29 PM
> > Subject: [DynoMotion] Re: Button jog
> >
> >
> >  
> >
> > Hi Tom
> >
> > Each button is 3 way momentary toggled switches.
> > So yes it would take 6 inputs.
> > And i would want variable speed if possible. With a potentiometer or something.
> > I have a 12 way switch 0 - 120%, 10% steps i could use.
> > Sorry for any miss spellings.
> >
> > Stefan
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> > >
> > > Hi Stefan,
> > >
> > > You can basically wire switches to any available inputs as a software program will be used to read them and command motion.  The software program can be written to monitor any inputs.
> > >
> > >
> > > The simplest would be to use the Kanalog Opto Inputs if they are available and run 12V through the switches.
> > >
> > > Another option would be to switch 3.3V to KFLOP's inputs on JP4 or JP5 where each connector has 8 built in 150 ohm pull down resistors.
> > >
> > > Could you explain the "3 buttons" more clearly.  I'm thinking you mean (3) 3 way momentary toggle switches?  That would actually require 6 inputs.
> > >
> > > The program would basically be to monitor the switches and command Jogs of some speed or stop (Jog at zero speed).
> > >
> > > You would only need one speed?  Or would you want variable or various speeds?
> > >
> > > Regards
> > > TK
> > >
> > >
> > >
> > > ________________________________
> > > From: s.astrom
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Thursday, December 27, 2012 1:48 AM
> > > Subject: [DynoMotion] Button jog
> > >
> > >
> > >  
> > > Hi,
> > > I'm using kanalog and kflop with mach3 to run my mill.
> > > I want to mount buttons on the control panel to use for jog.
> > > Is that possible and how would i do that.
> > > 3 buttons with jog+ and jog-.
> > > I dont know what pin to connect to and how the c program
> > > should look like.
> > >
> >
>